/*
 * PlayerChosenEvent.java
 *
 * Created on October 10, 2005, 8:25 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.bff.bjj.ui.component.events;

import java.util.EventObject;

/**
 * Represents typing from a jlist
 * @author Bill Findeisen
 */
public class KeyTypedEvent extends EventObject {
    private TYPE_EVENT id;
    private boolean change;

    public enum TYPE_EVENT {
        TYPE_STARTED, TYPE_ENDED;
    }
    
    /**
     * 
     * Creates a new instance of PlayListChangeEvent
     * @param source the object on which the Event initially occurred
     * @param id the specific event that occurred
     */
    public KeyTypedEvent(Object source, TYPE_EVENT id, boolean change) {
        super(source);
        this.id = id;
        this.change = change;
    }
    
    
    /**
     * Returns specific id of the event that occurred.  The ids are public static
     * fields in the class.
     * @return the specific id
     */
    public TYPE_EVENT getId() {
        return(id);
    }

    public boolean isChange() {
        return change;
    }

    public void setChange(boolean change) {
        this.change = change;
    }
}
